package com.tsinkai.ettp.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("checkip")
public class CheckIpController {
	@RequestMapping("one")
	public String check(HttpServletRequest req) {
		String remoteIp = req.getRemoteAddr();
		System.out.println(remoteIp);
		return remoteIp;
	}
}
